package com.yitong;

import java.io.*;
import java.net.Socket;

public class demo7 {
    public static void main(String[] args) throws IOException {
        Socket s =new Socket("192.168.74.1",1000);

        BufferedReader br =new BufferedReader(new InputStreamReader(System.in));

        BufferedWriter bw =new BufferedWriter(new OutputStreamWriter(s.getOutputStream()));

        String line;
        while((line=br.readLine())!=null){
            if("886".equals(line)){
                break;
            }
            bw.write(line);
            //每写一行就换一行
            bw.newLine();
            //刷新缓冲区的数据
            bw.flush();
        }
    }
}
